import request from '@/utils/request'

export function fetchNoticeList(params) {
    return request({
        url: '/system/notice/list',
        method: 'get',
        params: params
    })
}

export function addNotice(data) {
    return request({
        url: '/system/notice/add',
        method: 'post',
        data
    })
}

export function updateNotice(data) {
    return request({
        url: '/system/notice/update',
        method: 'put',
        data
    })
}

export function top(data) {
    return request({
        url: '/system/notice/top',
        method: 'put',
        data
    })
}

export function deleteNotice(id) {
    return request({
        url: '/system/notice/delete',
        method: 'delete',
        params: {
            id: id
        }
    })
}

export function deleteBatchNotice(data) {
    return request({
        url: '/system/notice/deleteBatch',
        method: 'delete',
        data
    })
}

